#!/usr/bin/perl

while($line = <STDIN>) {
	chomp($line);
	($srcPhr,$tgtPhr,$alnSrc,$alnTgt,$scores) = split(/\s\|\|\|\s/,$line);
	($phr_tgt_g_src,@others) = split(/\s+/,$scores);

	#print "$srcPhr, $tgtPhr >> $scores\n";

	@srcWords=split(/\s+/,$srcPhr);
	@tgtWords=split(/\s+/,$tgtPhr);

	#print $#srcWords."==0? ".$#tgtWords."<=1?\n";

	if($#srcWords==0 && $#tgtWords<=1) {
		print "$srcPhr \|\|\| $tgtPhr \|\|\| ".log($phr_tgt_g_src)."\n";
	}
}
